import { request } from '@/utils/request.js';

export function getUser(data) {
  return request({
    url: '/user/my/home',
    method: 'post',
    data,
    encryptionType: 'aes',
    expireNeedJump: false,
  });
}

// 获取消息未读数量
export function getUnreadCount() {
  return request({
    url: '/user/msg/getUnReadCount',
    method: 'post',
    encryptionType: 'aes',
    expireNeedJump: false,
  });
}

// 退出登录
export function logout() {
  return request({
    url: '/app/logout',
    method: 'post',
    serviceBase: '/smt-auth',
  });
}
